package cn.seaboot.admin.core.bean;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * POJO
 * 系统字典 [t_sys_dictionary]
 * <p>
 *
 * @author Mr.css on 2018-08-11 22:29
 */
@Schema(description = "系统字典 [t_sys_dictionary] 实体类")
public class Dictionary implements Serializable {
    private static final long serialVersionUID = -3441530353484637246L;
    /**
     * ID
     */
    @Schema(description = "ID")
    private Integer id;
    /**
     * 库名
     */
    @Size(max = 64)
    @Schema(description = "库名")
    private String schemaName;
    /**
     * 表名
     */
    @Size(max = 64)
    @Schema(description = "表名")
    private String tableName;
    /**
     * 列名
     */
    @Size(max = 64)
    @Schema(description = "列名")
    private String columnName;
    /**
     * 类型
     */
    @Size(max = 16)
    @Schema(description = "类型")
    private String valueType;
    /**
     * 标签
     */
    @Size(max = 32)
    @Schema(description = "标签")
    private String label;
    /**
     * 值
     */
    @Schema(description = "值")
    private Object value;
    /**
     * 样式
     */
    @Size(max = 32)
    @Schema(description = "样式")
    private String style;
    /**
     * 常量名
     */
    @Size(max = 64)
    @Schema(description = "常量名")
    private String constantName;
    /**
     * 排序
     */
    @Schema(description = "排序")
    private Long orderBy;
    /**
     * 描述
     */
    @Size(max = 128)
    @Schema(description = "描述")
    private String description;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSchemaName() {
        return schemaName;
    }

    public void setSchemaName(String schemaName) {
        this.schemaName = schemaName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getValueType() {
        return valueType;
    }

    public void setValueType(String valueType) {
        this.valueType = valueType;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public String getConstantName() {
        return constantName;
    }

    public void setConstantName(String constantName) {
        this.constantName = constantName;
    }

    public Long getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(Long orderBy) {
        this.orderBy = orderBy;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Dictionary{" +
                "id='" + id + '\'' +
                ", schemaName='" + schemaName + '\'' +
                ", tableName='" + tableName + '\'' +
                ", columnName='" + columnName + '\'' +
                ", valueType='" + valueType + '\'' +
                ", label='" + label + '\'' +
                ", value='" + value + '\'' +
                ", style='" + style + '\'' +
                ", constantName='" + constantName + '\'' +
                ", orderBy=" + orderBy +
                ", description='" + description + '\'' +
                '}';
    }
}